package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EmployeesMapper;
import com.ruoyi.system.domain.Employees;
import com.ruoyi.system.service.IEmployeesService;

/**
 * 职员档案Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-16
 */
@Service
public class EmployeesServiceImpl implements IEmployeesService 
{
    @Autowired
    private EmployeesMapper employeesMapper;

    /**
     * 查询职员档案
     * 
     * @param empId 职员档案主键
     * @return 职员档案
     */
    @Override
    public Employees selectEmployeesByEmpId(String empId)
    {
        return employeesMapper.selectEmployeesByEmpId(empId);
    }

    /**
     * 查询职员档案列表
     * 
     * @param employees 职员档案
     * @return 职员档案
     */
    @Override
    public List<Employees> selectEmployeesList(Employees employees)
    {
        return employeesMapper.selectEmployeesList(employees);
    }

    /**
     * 新增职员档案
     * 
     * @param employees 职员档案
     * @return 结果
     */
    @Override
    public int insertEmployees(Employees employees)
    {
        return employeesMapper.insertEmployees(employees);
    }

    /**
     * 修改职员档案
     * 
     * @param employees 职员档案
     * @return 结果
     */
    @Override
    public int updateEmployees(Employees employees)
    {
        return employeesMapper.updateEmployees(employees);
    }

    /**
     * 批量删除职员档案
     * 
     * @param empIds 需要删除的职员档案主键
     * @return 结果
     */
    @Override
    public int deleteEmployeesByEmpIds(String[] empIds)
    {
        return employeesMapper.deleteEmployeesByEmpIds(empIds);
    }

    /**
     * 删除职员档案信息
     * 
     * @param empId 职员档案主键
     * @return 结果
     */
    @Override
    public int deleteEmployeesByEmpId(String empId)
    {
        return employeesMapper.deleteEmployeesByEmpId(empId);
    }
}
